<template>
    <van-tabbar route>
        <van-tabbar-item  to="/home" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item  to="/recommend" icon="smile-comment-o">种草文章</van-tabbar-item>
        <van-tabbar-item  to="/cart" icon="cart-o" :badge="store.count">购物车</van-tabbar-item>
        <van-tabbar-item  to="/user" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
</template>

<script setup>
import useCartInfo from '@/stores/useCartInfo'
let store=useCartInfo()
</script>

